#include "pixelformat.h"
//

void Win32oglPixelFormat::invalidate()
{
	m_viAttribs.clear();
	m_vfAttribs.clear();

	for(int i=0;i<(int)m_iAttribSet.size();++i)
	{
		iAttribSetType::ItemType item = m_iAttribSet.at(i);
		m_viAttribs.push_back(item.first);
		m_viAttribs.push_back(item.second);
	}
	m_viAttribs.push_back(0); m_viAttribs.push_back(0);

	for(int i=0;i<(int)m_fAttribSet.size();++i)
	{
		fAttribSetType::ItemType item = m_fAttribSet.at(i);
		m_vfAttribs.push_back((float)item.first);
		m_vfAttribs.push_back(item.second);
	}
	m_vfAttribs.push_back(0); m_vfAttribs.push_back(0);
}

Win32oglPixelFormat::Win32oglPixelFormat() :m_iAttribSet(0,0),m_fAttribSet(0,0)
{
	
}